<?php
session_start();
//ct 2009-01-29 Added class _subpath
// includes
	include_once "quickcrud_connect.php";
	include_once "CFclass/CF_mysql_com.php";
	include_once "CFclass/CF_support.php";
	
	include_once "qc_functions.php";

	$field_name = addslashes($_REQUEST['field_name']);
	$makefunction = addslashes($_REQUEST['makefunction']);
	$crudset_id = $_SESSION['flt_crudset_id'];
	$project_id = lookup_value('project_id','crudsets'," crudset_id = $crudset_id "); 
	

	
	add_field_col($field_name,$crudset_id, $project_id, $makefunction);
	
	header("Location: crudcols_list.php?flt_crudset_id=$crudset_id");

?>